Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "point-within-polygon">

It allows to check if a given point is inside a predetermined polygon.

Inputs

A JSON with these parameters:
polygon string
“<WKT_string>” for a geographic path described as Well Known Text
pointlatitude string
latitude of the point to check
pointlongitude number
longitude of the point to check

Outputs

true if the point is inside the polygon area, false otherwise

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.